home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Framework / Includes / UContainer.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  2.0 KB  |  87 lines  |  [TEXT/MPS ]

  1. // UContainer.h
  2. // Copyright © 1995-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4. #ifndef __UCONTAINER__
  5. #define __UCONTAINER__
  6.  
  7. // MacApp
  8.  
  9. #ifndef __MACONDITIONALMACROS__
  10. #include "MAConditionalMacros.h"
  11. #endif
  12.  
  13. #ifndef __UFAILURE__
  14. #include "UFailure.h"
  15. #endif
  16.  
  17. #if qContainer
  18.  
  19. // CALib
  20.  
  21. #ifndef _CADEFS_
  22. #include "CADefs.h"
  23. #endif
  24.  
  25. // Toolbox
  26.  
  27. #ifndef __TYPES__
  28. #include <Types.h>
  29. #endif
  30.  
  31. #ifndef __WINDOWS__
  32. #include <Windows.h>
  33. #endif
  34.  
  35. //----------------------------------------------------------------------------------------
  36. // Forward and external declarations
  37. //----------------------------------------------------------------------------------------
  38.  
  39. class TWindow;
  40.  
  41. //----------------------------------------------------------------------------------------
  42. // Global constants declarations. Build options.
  43. //----------------------------------------------------------------------------------------
  44.  
  45. //----------------------------------------------------------------------------------------
  46. // Global functions. 
  47. //----------------------------------------------------------------------------------------
  48.  
  49. Boolean HasContainerLib();
  50. void InstallContainerLib();
  51.  
  52. WindowPtr MA_CAFrontWindowProc(CAWindowLayer windowLayer);
  53. void MA_CAInitMenus();
  54. CADocumentRef GetCADocument(WindowPtr wMgrWindow);
  55. CADocumentRef GetCADocument(TWindow* window);
  56.  
  57. //========================================================================================
  58. // CLASS CModalFocus
  59. //========================================================================================
  60.  
  61. class CModalFocus
  62. {
  63.   protected:
  64.     FailInfo    fFailInfo;
  65.     WindowPtr    fWindow;
  66.     Boolean        fHasFocus;
  67.  
  68.   public:
  69.     CModalFocus(WindowPtr window);
  70.     ~CModalFocus();
  71.  
  72.     Boolean Request();
  73.     OSErr Relinquish();
  74.     
  75.   private:
  76.     static void CallRelinquish(void* context);
  77. };
  78.  
  79. //----------------------------------------------------------------------------------------
  80. // Global variables. 
  81. //----------------------------------------------------------------------------------------
  82.  
  83. extern Boolean gContainerLib;
  84.  
  85. #endif // qContainer
  86. #endif // __UCONTAINER__
  87.